<?xml version="1.0" encoding="UTF-8"?>
<ui:composition template="/WEB-INF/templates/portalTemplate.xhtml"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:my="http://java.sun.com/jsf/composite/components">
	<ui:define name="content">
	<h:form>
	<rich:panel>
	<f:facet name="header">
		<h:outputText value="Dodaj news" />
	</f:facet>
		
		<h:panelGrid columns="1">
		<h:outputLabel value="Tytuł:" />
		<h:inputText value="#{addNewsBrowser.news.title}" />
		<h:outputLabel value="Treść" />
		<rich:editor value="#{addNewsBrowser.news.content}" width="100%" toolbar="full">
				
		</rich:editor>
		<a4j:commandButton value="Zapisz" action="#{addNewsBrowser.save}" render="@form"/>
		</h:panelGrid>
		
		
	</rich:panel>
	
	</h:form>
	
	</ui:define>
	</ui:composition>